package com.hs.auth.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hs.auth.dao.IUserDao;
import com.hs.auth.model.HsAccount;
import com.hs.auth.service.IUserService;
import com.hs.core.dao.IBaseDao;
import com.hs.core.service.impl.BaseSevice;
import com.hs.core.utils.PageParam;
import com.hs.core.utils.PageUtil;
@Service 
public class UserService  extends BaseSevice implements IUserService{

	private IUserDao userDao;
	@Override
	public IBaseDao getBaseDao() {
		// TODO Auto-generated method stub
		return userDao;
	}
	@Autowired
	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

	public PageUtil getUserList(PageParam pageParam){
		return this.userDao.getUserList(pageParam);
	}
	public PageUtil getAccList(PageParam pageParam){
		return this.userDao.getAccList(pageParam);
	}
	/**
	 * 根据用户uid获得用户帐号信息
	 * @param uid
	 * @return
	 */
	public HsAccount getAccByUid(String uid){
		return this.userDao.getAccByUid(uid);
	}
	
}
